/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class AquariumWaterPump {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010090017';
    }

    get categoryName() {
        return '\u9c7c\u7f38\u6c34\u6cf5';
    }

    getFlowSpeed(params) {
        return command({
            method: 'getFlowSpeed',
            methodId: 'pZgubj6w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pGox3ysU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vZLiJC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFlowSpeed(params) {
        return command({
            method: 'setFlowSpeed',
            methodId: 'peH3eUk5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'ppAr4CVm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQDOaP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default AquariumWaterPump;
